/**
 * Created by yourEmail on 2017/11/17.
 */
define([
  './themes/lang/' + window.YUFP_SYS_CONFIG.language + '/pages/example/package/elTableXDoc.js'
], function (require, exports) {
  // page加载完成后调用ready方法
  exports.ready = function (hashCode, data, cite) {
    // 创建virtual model
    yufp.custom.vue({
      el: '#el_table_x_doc',
      data: {
        grid: {
          data1: [
            {name: 'default-load', remark: this.$t('elTableXDoc.mrcfcx'), type: 'boolean', option: '—', default: 'true'},
            {name: 'pageable', remark: this.$t('elTableXDoc.sffy'), type: 'boolean', option: '—', default: 'true'},
            {name: 'data-url', remark: this.$t('elTableXDoc.cx'), type: 'String', option: '—', default: '-'},
            {name: 'base-params', remark: this.$t('elTableXDoc.gdcsbhszdtcsbhebh'), type: 'object', option: '—', default: '{}'},
            {name: 'checkbox', remark: this.$t('elTableXDoc.sfxsfxk'), type: 'boolean', option: '—', default: 'true'},
            {name: 'table-columns', remark: '属性列配置(详见下表描述)', type: 'Array', option: '—', default: '[]'},
            {name: 'table-filters', remark: this.$t('elTableXDoc.glqpzyyxbgnbcdglq'), type: 'Object', option: '—', default: '[]'},
            {name: '-'},
            {name: 'height', remark: this.$t('elTableXDoc.dgdmrwzdgdrgwlxdwrgwlxzdgdskywbys'), type: 'string/number', option: '—', default: '—'},
            {name: 'max-height', remark: this.$t('elTableXDoc.dzdgd'), type: 'string/number', option: '—', default: '—'},
            {name: 'stripe', remark: this.$t('elTableXDoc.sfwbmw'), type: 'boolean', option: '—', default: 'true'},
            {name: 'border', remark: this.$t('elTableXDoc.sfdyzxbk'), type: 'boolean', option: '—', default: 'true'},
            {name: 'fit', remark: this.$t('elTableXDoc.ldkdsfzck'), type: 'boolean', option: '—', default: 'true'},
            {name: 'show-header', remark: this.$t('elTableXDoc.sfxsbt'), type: 'boolean', option: '—', default: 'true'},
            {name: 'highlight-current-row', remark: this.$t('elTableXDoc.sfygldqx'), type: 'boolean', option: '—', default: 'true'},
            {name: 'row-class-name', remark: this.$t('elTableXDoc.xddhtffykysyzfcwsyxszyggdd'), type: 'Function(row, index)/String', option: '—', default: '-'},
            {name: 'row-style', remark: this.$t('elTableXDoc.xddhtffykysyyggddwsyxszyyd'), type: 'Function(row, index)/Object', option: '—', default: '-'},
            {name: 'row-key', remark: this.$t('elTableXDoc.xsjdylyhdxrzsygndqkxgsxsbtd'), type: 'Function(row)/String', option: '—', default: '-'},
            {name: 'show-summary', remark: this.$t('elTableXDoc.sfzbwxshjx'), type: 'boolean', option: '—', default: 'false'},
            {name: 'sum-text', remark: this.$t('elTableXDoc.hjxdyldwb'), type: 'string', option: '—', default: '—'},
            {name: 'summary-method', remark: this.$t('elTableXDoc.zdydhjjsff'), type: 'Function({ columns, data })', option: '—', default: '—'},
            {name: 'current-row-key', remark: this.$t('elTableXDoc.dqxdzxsx'), type: 'String,Number', option: '—', default: '—'},
            {name: 'empty-text', remark: this.$t('elTableXDoc.ksjsxsdwbnr'), type: 'string', option: '—', default: '—'},
            {name: 'expand-row-keys', remark: this.$t('elTableXDoc.kytggsxszmqdzkxxyszsxcnsygsxwzkxdsz'), type: 'string', option: '—', default: '—'},
            {name: 'default-expand-all', remark: this.$t('elTableXDoc.sfmrzksyxdzczddshyx'), type: 'string', option: '—', default: '—'},
            {name: 'default-sort', remark: this.$t('elTableXDoc.mrdpxldhsxtdsxzdmrdpxdlzdmrpxdsx'), type: 'string', option: 'order: ascending, descending', default: this.$t('elTableXDoc.rgzzdlmyzdzmrsxs')},
            {name: 'tooltip-effect', remark: this.$t('elTableXDoc.sx'), type: 'dark/light', option: '—', default: '—'}
          ],
          data2: [
            {name: 'clearSelection', remark: this.$t('elTableXDoc.yydxbgqkyhdxzdsygndshknhxysycff'), param: 'selection'},
            {name: 'toggleRowSelection', remark: this.$t('elTableXDoc.yydxbgqhmyxdxzztrgsyldegcszsszzyxxzyfwzxz'), param: 'row, selected'},
            {name: 'setCurrentRow', remark: this.$t('elTableXDoc.yydxbgsdmyxwxzhrgdysbjcszhqxmqglxdxzzt'), param: 'row'}
          ],
          data3: [
            {name: 'select', remark: this.$t('elTableXDoc.dyhsdgxsjxdscfdsj'), param: 'selection, row'},
            {name: 'select-all', remark: this.$t('elTableXDoc.dyhsdgxqxscfdsj'), param: 'selection'},
            {name: 'selection-change', remark: this.$t('elTableXDoc.dxzxfsbhshcfgsj'), param: 'selection'},
            {name: 'cell-mouse-enter', remark: this.$t('elTableXDoc.ddygjrshcfgsj'), param: 'row, column, cell, event'},
            {name: 'cell-mouse-leave', remark: this.$t('elTableXDoc.ddygtcshcfgsj'), param: 'row, column, cell, event'},
            {name: 'cell-click', remark: this.$t('elTableXDoc.dmgdygbdjshcfgsj'), param: 'row, column, cell, event'},
            {name: 'cell-dblclick', remark: this.$t('elTableXDoc.dmgdygbsjjshcfgsj'), param: 'row, column, cell, event'},
            {name: 'row-click', remark: this.$t('elTableXDoc.dmyxbdjshcfgsj'), param: 'row, event, column'},
            {name: 'row-contextmenu', remark: this.$t('elTableXDoc.dmyxbsbyjdjshcfgsj'), param: 'row, event'},
            {name: 'row-dblclick', remark: this.$t('elTableXDoc.dmyxbsjshcfgsj'), param: 'row, event'},
            {name: 'header-click', remark: this.$t('elTableXDoc.dmyldbtbdjshcfgsj'), param: 'column, event'},
            {name: 'sort-change', remark: this.$t('elTableXDoc.dbgdpxtjfsbhdshhcfgsj'), param: '{ column, prop, order }'},
            {name: 'current-change', remark: this.$t('elTableXDoc.dbgddqxfsbhdshhcfgsjrgygldqxqdkbgdsx'), param: 'currentRow, oldCurrentRow'}
          ],
          data4: [
            {name: 'columnKey', remark: this.$t('elTableXDoc.drgxysysjzxycsxbzsngdsxtj'), type: 'string', option: '—', default: '—'},
            {name: 'label', remark: this.$t('elTableXDoc.xsdbt'), type: 'string', option: '—', default: '—'},
            {name: 'prop', remark: this.$t('elTableXDoc.dylnrdzdmykysysx'), type: 'string', option: '—', default: '—'},
            {name: 'width', remark: this.$t('elTableXDoc.dyldkd'), type: 'string', option: '—', default: '—'},
            {name: 'minWidth', remark: this.$t('elTableXDoc.dyldzxkdydqbssgddhbsykdablfpjszldl'), type: 'string', option: '—', default: '—'},
            {name: 'fixed', remark: this.$t('elTableXDoc.lsfgdzzchzycbsgdzzc'), type: 'string, boolean', option: '—', default: '—'},
            {name: 'renderHeader', remark: this.$t('elTableXDoc.lbtqyxrsyd'), type: 'Function(h, { column, $index })', option: '—', default: '—'},
            {name: 'sortable', remark: '对应列是否可以排序，如果设置为 \'custom\'' + this.$t('elTableXDoc.zdbyhxwycpxxyjtdsj'), type: 'boolean, string', option: '—', default: '—'},
            {name: 'sortMethod', remark: this.$t('elTableXDoc.dsjjxpxdshsydffjdszwdshyxxfhygbez'), type: 'Function(a, b)', option: '—', default: '—'},
            {name: 'resizable', remark: this.$t('elTableXDoc.dylsfkytgtdgbkdxyzsszsxwz'), type: 'Boolean', option: '—', default: '—'},
            {name: 'formatter', remark: this.$t('elTableXDoc.ylgshnr'), type: 'Function(row, column)', option: '—', default: '—'},
            {name: 'showOverflowTooltip', remark: this.$t('elTableXDoc.dnrgcbycsxs'), type: 'Boolean', option: '—', default: '—'},
            {name: 'align', remark: this.$t('elTableXDoc.dqfs'), type: 'string', option: '—', default: '—'},
            {name: 'headerAlign', remark: this.$t('elTableXDoc.btdqfsrbszgxzsybgddqfs'), type: 'string', option: '—', default: '—'},
            {name: 'className', remark: this.$t('elTableXDoc.ld'), type: 'string', option: '—', default: '—'},
            {name: 'labelClassName', remark: this.$t('elTableXDoc.dqlbtdzdylm'), type: 'string', option: '—', default: '—'},
            {name: 'selectable', remark: this.$t('elTableXDoc.jddlyxlxwdfhzyljdzyxdsfkygx'), type: 'Function(row, index)', option: '—', default: '—'},
            {name: 'reserveSelection', remark: this.$t('elTableXDoc.jddlyxlxwwzdbhblzqsjdxxxyphdffsy'), type: 'Boolean', option: '—', default: '—'},
            {name: 'filters', remark: this.$t('elTableXDoc.sjgldxxszgsszzdysxyyhsx'), type: 'Array[{ text, value }]', option: '—', default: '—'},
            {name: 'filterPlacement', remark: this.$t('elTableXDoc.gltckddw'), type: 'string', option: '—', default: '—'},
            {name: 'filterMultiple', remark: this.$t('elTableXDoc.sjgldxxsfdx'), type: 'Boolean', option: '—', default: '—'},
            {name: 'filterMethod', remark: this.$t('elTableXDoc.sjglsydffrgsdxdsxxdmytsjhzxdcryycfhjhxs'), type: 'Function(value, row)', option: '—', default: '—'},
            {name: 'filteredValue', remark: this.$t('elTableXDoc.xzdsjglxrgxyzdybtgldxrfsknhxycsx'), type: 'Array', option: '—', default: '—'}
          ]
        }
      },
      mounted: function () {

      },
      methods: {

      }
    });
  };

  // 消息处理
  exports.onmessage = function (type, message) {

  };

  // page销毁时触发destroy方法
  exports.destroy = function (id, cite) {

  };
});
